<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/27
  Time: 11:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>displayBook</title>
</head>
<body>
<%--利用userBean动作实例化对象Book，名字为books--%>
<jsp:useBean id="books" class="bean.Book" scope="session"></jsp:useBean>

使用setProperty动作利用表单元素给books属性赋值
property参数从Book.java中获取
param参数从book.html中获取的标签的name属性
<jsp:setProperty name="books" property="isbn" param="isbn"/>
<jsp:setProperty name="books" property="bookName" param="bookName"/>
<jsp:setProperty name="books" property="author" param="author"/>
<jsp:setProperty name="books" property="status" param="status"/>

<%--使用getProperty动作取books内的值--%>
ISBN:<jsp:getProperty name="books" property="isbn"/>
书名：<jsp:getProperty name="books" property="bookName"/>
作者：<jsp:getProperty name="books" property="author"/>
是否售出：<jsp:getProperty name="books" property="status"/>
</body>
</html>
